package com.xuyiwei.xblog.business.system.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.xuyiwei.xblog.business.system.dao.OperationLogMapper;
import com.xuyiwei.xblog.business.system.model.OperationLog;
import com.xuyiwei.xblog.business.system.result.log.input.LogConditionVO;
import com.xuyiwei.xblog.business.system.service.IOperationLogService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 操作日志 服务实现类
 * </p>
 *
 * @author stylefeng123
 * @since 2018-02-22
 */
@Service
public class OperationLogServiceImpl extends ServiceImpl<OperationLogMapper, OperationLog> implements IOperationLogService {


    @Override
    public List<OperationLog> getOperationLogs(Page<OperationLog> page, LogConditionVO vo, String orderByField, boolean asc) {
        return this.baseMapper.findPageByCondition(page, vo , orderByField, asc);
    }
}
